package com.tszs.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.UserReceivingAddressMapper;
import com.tszs.entity.UserReceivingAddress;
import com.tszs.entity.UserReceivingAddressExample;

/**
 * @类名：UserDetailsBiz
 * @类描述：用户收货表
 * @创建人：王俊	
 * @创建时间：2019-04-01 21:09:35
 * @author Administrator
 *
 */
@Service
public class UserReceivingAddressBiz {
	/**
	 * @UserReceivingAddressMapper
	 */
	@Autowired
	private UserReceivingAddressMapper userReceivingAddressMapper;
	/**
	 * @方法：insertSelective
	 * @方法描述：用户收货添加
	 * @创建人：王俊	
	 * @创建时间：2019-04-01 21:09:35
	 * @author Administrator
	 *
	 */
	@Transactional
	public int insertSelective(UserReceivingAddress record) {
		return userReceivingAddressMapper.insertSelective(record);
	}
	/**
	 * @方法：updateByExampleSelective
	 * @方法描述：用户收货修改
	 * @创建人：王俊	
	 * @创建时间：2019-04-01 21:09:35
	 * @author Administrator
	 *
	 */
	@Transactional
	public int updateByExampleSelective(@Param("record") UserReceivingAddress record, @Param("example") UserReceivingAddressExample example){
		return userReceivingAddressMapper.updateByExampleSelective(record, example);
	}
	/**
	 * @方法：selectByExample
	 * @方法描述：用户收货查询
	 * @创建人：王俊	
	 * @创建时间：2019-04-01 21:09:35
	 * @author Administrator
	 *
	 */
	@Transactional
	public List<UserReceivingAddress> selectByExample(UserReceivingAddressExample example){
		return userReceivingAddressMapper.selectByExample(example);
	}
	/**
	 * @方法：deleteByExample
	 * @方法描述：删除收获地址
	 * @创建人：王俊	
	 * @创建时间：2019-04-01 21:09:35
	 * @author Administrator
	 *
	 */
	@Transactional
	public int deleteByExample(UserReceivingAddressExample example){
		return userReceivingAddressMapper.deleteByExample(example);
	}
}
